﻿using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using Sharp.Portal.AdminLTE;
using Sharp.Portal.Mvc;
using Sharp.Portal.Mvc.Form;

namespace Sharp.WebBooter.Areas.Demo.Models
{
    public partial class TroubleshootingModel
    {
        public class ConfirmationInfo : ISharpForm
        {
            public ConfirmationInfo()
            {
                UI = new BSSharpFrom(this);
            }
            [HiddenInput]
            public int Id { get; set; }
            /// <summary>
            /// 隐患确认
            /// </summary>
            [Display(Name = "隐患确认")]
            public bool? DangerConfirmation { get; set; }

            /// <summary>
            /// 隐患确认人
            /// </summary>
            [Display(Name = "隐患确认人"), CustomField(FieldType.SelectBox, "/Platform/Employee/EmployeeDialog/", DisplayField = "", ValueField = nameof(DangerConfirmationPersonId)), Required]
            public string DangerConfirmationPerson { get; set; }
            public int DangerConfirmationPersonId { get; set; }

            /// <summary>
            /// 整改要求
            /// </summary> 

            [Display(Name = "整改要求"), DataType(DataType.MultilineText), Required]
            public string RectificationRequirements { get; set; }

            public SharpFrom UI { get; set; }
        }
    }
}